H=5;//current+H
ws=3;
gm=.9;
ngen=10;
ggsize=zeros(ngen+1,1);
ggrid=cell();
gepls=cell();
for k=0:ngen
    [fdg, err] = mopen("gen"+string(k)+".dat");
    [fdp, err] = mopen("path"+string(k)+".dat");
    ggsize(k+1)=strtod(mgetl(fdg,1));
    ggrid(k+1).entries=mgetl(fdg);
    mclose(fdg);
    expert=strtod(mgetl(fdp));
    mclose(fdp);
    gepls(k+1).entries=zeros(size(expert,1)-1,1);
    for i=2:size(expert,1)
        gepls(k+1).entries(i-1)=expert(i)-expert(i-1);
    end
//use part to search character
//define feature vectors for a state
//gen random weights
//find optimal strategy for weights ->write RL code add to policy list
//maximize weights for diff V
    //file("close", fdg);
    //file("close", fdp);
end
